package com.atguigu.gulimall.product.service;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.product.vo.AttrRespVo;
import com.atguigu.gulimall.product.vo.AttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author lihaojie
 * @email lihaojie@gmail.com
 * @date 2023-10-29 22:23:02
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);
    
    void saveAttr(AttrVo attrVo);
    
    PageUtils baseAttrList(Map<String, Object> params, Long catelogId, String attrType);
    
    AttrRespVo getAttrInfo(Long attrId);
    
    void updateInfo(AttrRespVo attr);
    
    List<AttrEntity> getAttrRelation(Long attrgroupId);
    
    PageUtils getNoRelationList(Map<String, Object> params, Long attrgroupId);
    
    List<Long> selectSearchAttrIds(List<Long> attrIds);
    
}

